import request from '@/utils/request'

// 创建隐患流程信息
export function createHtHiddentroubleflow(data) {
  return request({
    url: '/biz/ht-hiddentroubleflow/create',
    method: 'post',
    data: data
  })
}

// 更新隐患流程信息
export function updateHtHiddentroubleflow(data) {
  return request({
    url: '/biz/ht-hiddentroubleflow/update',
    method: 'put',
    data: data
  })
}

// 删除隐患流程信息
export function deleteHtHiddentroubleflow(id) {
  return request({
    url: '/biz/ht-hiddentroubleflow/delete?id=' + id,
    method: 'delete'
  })
}

// 获得隐患流程信息
export function getHtHiddentroubleflow(id) {
  return request({
    url: '/biz/ht-hiddentroubleflow/get?id=' + id,
    method: 'get'
  })
}

// 获得隐患流程信息分页
export function getHtHiddentroubleflowPage(query) {
  return request({
    url: '/biz/ht-hiddentroubleflow/page',
    method: 'get',
    params: query
  })
}

// 导出隐患流程信息 Excel
export function exportHtHiddentroubleflowExcel(query) {
  return request({
    url: '/biz/ht-hiddentroubleflow/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
